package com.study.mike.service;

import com.study.mike.DemoApplicationTest;
import org.junit.*;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.boot.test.mock.mockito.SpyBean;

/**
 * @author Kh
 */
public class DemoJunitImplTest1 extends DemoApplicationTest {

    @SpyBean
    private BookService bookService;

    @MockBean
    private UserService userService;

    @Before
    public void beforeTest() {
        System.out.println("作用于测试方法之前！！！");
    }

    @Test
    public void myTest() {

    }

    @After
    public void afterTest() {
        System.out.println("作用于测试方法之后！！！");
    }

    @Test
    public void myTest1() {

    }

}
